home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pru_waterfallspray.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  68 lines

  1. # Jones 3D Cog Script
  2. #
  3. # PRU_waterfallSpray.cog    Particles at base of falls
  4. #
  5. # [GGJ]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11. message startup
  12. message    arrived
  13.  
  14. thing        rotateGhost
  15. thing        mistGhost0
  16. thing        mistGhost1
  17.  
  18. template    mist0=splashenter        local #H2Ofallfx    local
  19. template    mist1=splashenter        local #    splashin        local #H2Ofallfx    local
  20.  
  21. material    mat1=gen_a4sfx_splash.mat         local            #obj_pyr_a4sfx_splash_bot.mat        local    
  22. #material    mat0=obj_pyr_a4sfx_splash.mat            local
  23.  
  24. end
  25. # ========================================================================================
  26. code
  27. startup:
  28. AttachThingToThing(mistGhost0, rotateGhost);
  29. AttachThingToThing(mistGhost1, rotateGhost);
  30.  
  31. Sleep(0.1);
  32.  
  33. MoveToFrame(rotateGhost, RandBetween(0, 3), (0.5 * Rand() + 0.1));
  34.  
  35. Sleep(0.5 * Rand() + 0.1);
  36.  
  37. CreateThing(mist0, mistGhost0);
  38. MaterialAnim(mat1, 16, 0x0);
  39. #MaterialAnim(mat0, 20, 0x0);
  40.  
  41. Sleep(Rand());
  42. CreateThing(mist1, mistGhost1);
  43. MaterialAnim(mat1, 16, 0x0);
  44. #MaterialAnim(mat0, 20, 0x0);
  45.  
  46.  
  47. return;
  48.  
  49. arrived:
  50.  
  51. MoveToFrame(rotateGhost, RandBetween(0, 3), (0.5 * Rand() + 0.1));
  52.  
  53. CreateThing(mist0, mistGhost0);
  54. MaterialAnim(mat1, 16, 0x0);
  55. #MaterialAnim(mat0, 20, 0x0);
  56.  
  57. Sleep(0.5 * Rand() + 0.1);
  58.  
  59. CreateThing(mist1, mistGhost1);
  60. MaterialAnim(mat1, 16, 0x0);
  61. #MaterialAnim(mat0, 20, 0x0);
  62.  
  63.  
  64.  
  65.  
  66. return;
  67. end
  68.